// 查询列表
const getLawyerPage = (params) => {
  return $axios({
    url: '/lawyer/page',
    method: 'get',
    params
  })
}

// 删除接口
const deleteLawyer = (ids) => {
  return $axios({
    url: '/lawyer',
    method: 'delete',
    params: { ids }
  })
}

// 修改接口
const editLawywer = (params) => {
  return $axios({
    url: '/lawyer',
    method: 'put',
    data: { ...params }
  })
}

// 新增接口
const addLawyer = (params) => {
  return $axios({
    url: '/lawyer',
    method: 'post',
    data: { ...params }
  })
}

// 查询详情
const queryLawyerById = (id) => {
  return $axios({
    url: `/lawyer/${id}`,
    method: 'get'
  })
}

